/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xoskit.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __7C0A3A83_3EB7_4B55_8353_139FBF4806A7__
#define __7C0A3A83_3EB7_4B55_8353_139FBF4806A7__

namespace xos_container
{
    class i_container;
}

namespace xos_config
{

    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    // 
    // config模块主接口
    // 
    class i_config : public xos::i_release
    {
    protected:
        virtual ~i_config(){}

    public:
        virtual xos::i_release * set( const char * lpszId, xos::i_release * pProp, bool bAutoRelease ) = 0;
        virtual xos::i_release * remove( const char * lpszId ) = 0;
        virtual xos::i_release * get( const char * lpszId ) = 0;

    };

    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    // 
    // 导出函数定义
    // 
    typedef int ( * f_create )( xos_container::i_container * pContainer, i_config ** ppv );

} // xos_config

#endif // __7C0A3A83_3EB7_4B55_8353_139FBF4806A7__
